package edu.sctu.practice.class02.yangyuran.test10;

/**
 * Created by Administrator on 2015/10/12.
 */
public class Addition {
    public int Addition(int a, int b) {
        System.out.println(a + b);
        return a + b;
    }

    public String Addition(String a, String b) {
        System.out.println(a + b);
        return a + b;
    }

    public Long Addition(Long a, Long b) {
        System.out.println(a + b);
        return a + b;
    }

    public Float Addition(Float a, Float b) {
        System.out.println(a + b);
        return a + b;
    }

    public Double Addition(Double a, Double b) {
        System.out.println(a + b);
        return a + b;
    }

    public static void main(String[] args) {
        Addition add = new Addition();
        add.Addition(2, 3);
        add.Addition("ADC", "UIOWE");
        add.Addition(2L, 3L);
        add.Addition(2f, 3f);
        add.Addition(2, 3);
    }
}
